// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.linqingying.gitcode.pullrequest.data.service

import com.intellij.openapi.progress.ProgressIndicator
import org.jetbrains.annotations.CalledInAny
import com.linqingying.gitcode.api.data.pullrequest.GCPullRequestChangedFile
import com.linqingying.gitcode.pullrequest.data.GCPRIdentifier
import java.util.concurrent.CompletableFuture

interface GCPRFilesService {

  @CalledInAny
  fun loadFiles(
    progressIndicator: ProgressIndicator,
    pullRequestId: GCPRIdentifier
  ): CompletableFuture<List<GCPullRequestChangedFile>>

  @CalledInAny
  fun updateViewedState(
    progressIndicator: ProgressIndicator,
    pullRequestId: GCPRIdentifier,
    path: String,
    isViewed: Boolean
  ): CompletableFuture<Unit>
}
